/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-12
 * Time: 10:47
 */
public class Test {
    int size;
    public int fun(Tree root){
        if(root.left==null&&root.right==null){
            size++;
        }
       return  fun(root.left)+    fun(root.right);

    }
    public static void main(String[] args) {

    }
}
